package com.zst.common.buffer.partition;

public class RoundRobinPartitioner implements Partitioner{
    private volatile int index = 0;

    @Override
    public int partition(int max) {
        return Math.abs(index++ % max);
    }
}
